import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
// 样式重置
import 'normalize.css/normalize.css'
// 页面适配
import 'amfe-flexible'
// 引入css样式
import './assets/css/publice.css'
//解构pinia中的createPinia用于创建pinia实例
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
//实例化pinia
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
// 安装vant
import Vant from 'vant'
import 'vant/lib/index.css'

const app = createApp(App)

app.use(pinia)
app.use(router)
app.use(Vant)

app.mount('#app')
